home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / pxfisatty.z / pxfisatty
Text File  |  1998-10-30  |  3KB  |  65 lines

  1. PXFISATTY(3F)                                          Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      PPXXFFIISSAATTTTYY - Determines if file descriptor corresponds to a valid file
  6.      descriptor
  7.  
  8. SSYYNNOOPPSSIISS
  9.      SSUUBBRROOUUTTIINNEE PPXXFFIISSAATTTTYY ((_i_f_i_l_d_e_s,, _i_s_a_t_t_y,, _i_e_r_r_o_r))
  10.      IINNTTEEGGEERR _i_f_i_l_d_e_s,, _i_e_r_r_o_r
  11.      LLOOGGIICCAALL _i_s_a_t_t_y
  12.  
  13. IIMMPPLLEEMMEENNTTAATTIIOONN
  14.      UNICOS, UNICOS/mk, and IRIX systems
  15.  
  16. SSTTAANNDDAARRDDSS
  17.      IEEE standard interface for FORTRAN 77
  18.  
  19. DDEESSCCRRIIPPTTIIOONN
  20.      On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
  21.      default when compiling programs with the MIPSpro 7 Fortran 90 compiler
  22.      or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
  23.      7.2 F77 compiler.
  24.  
  25.      The PPXXFFIISSAATTTTYY routine uses iissaattttyy(3C) to determine if _i_f_i_l_d_e_s is a
  26.      valid file descriptor for a terminal.
  27.  
  28.      When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
  29.      UNICOS, UNICOS/mk, or IRIX, all arguments must be of default kind
  30.      unless documented otherwise.  On UNICOS and UNICOS/mk, default kind is
  31.      KKIINNDD==88 for integer, real, complex, and logical arguments; on IRIX, the
  32.      default kind is KKIINNDD==44.
  33.  
  34.      The following is a list of valid arguments for this routine:
  35.  
  36.      _i_f_i_l_d_e_s   An input integer variable containing the file descriptor to
  37.                be checked for an associated terminal.
  38.  
  39.      _i_s_a_t_t_y    An output logical variable which is .TRUE.  when _i_f_i_l_d_e_s is
  40.                a file descriptor with an associated terminal. Otherwise
  41.                _i_s_a_t_t_y is .FALSE..
  42.  
  43.      _i_e_r_r_o_r    An output integer variable for the PPXXFFIISSAATTTTYY completion
  44.                status. _i_e_r_r_o_r contains zero if PPXXFFIISSAATTTTYY was successful.
  45.  
  46. EEXXAAMMPPLLEESS
  47.           program pxftest
  48.           integer len, ifildes, ierror, O_RDONLY
  49.           character*20 path
  50.           logical isatty
  51.           CALL PXFCTERMID(path,len,ierror)
  52.           CALL PXFCONST('O_RDONLY',O_RDONLY,error)
  53.           CALL PXFOPEN(path,len,O_RDONLY,400,ifildes,error)
  54.           CALL PXFISATTY(ifildes,isatty,ierror)
  55.           print *,isatty
  56.           end
  57.  
  58. SSEEEE AALLSSOO
  59.      PPXXFFCCOONNSSTT(3F), PPXXFFOOPPEENN(3F)
  60.      ttttyynnaammee(3C)
  61.  
  62.      _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
  63.      2165, for the printed version of this man page.
  64.  
  65.